package com.example.warehouse.sys.service.impl;

import com.example.warehouse.common.pojo.vo.PageData;
import com.example.warehouse.sys.dao.persist.respository.ISysLogInFoRepository;
import com.example.warehouse.sys.pojo.vo.SysLogInFoListVO;
import com.example.warehouse.sys.service.ISysLogInFoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @author 欧胤
 * @version 1.0
 * @description: TODO
 * @date 2023/7/15 2:22
 */
@Slf4j
@Service
public class SysLogInFoServiceImpl implements ISysLogInFoService {
    @Autowired
    private ISysLogInFoRepository repository;
    @Value("${warehouse.dao.default-query-page-size}")
    private Integer defaultQueryPageSize;

    @Override
    public PageData<SysLogInFoListVO> list(Integer pageNum) {
        log.debug("开始处理【查询登录日志列表】的业务，页码：{}", pageNum);
        return repository.list(pageNum, defaultQueryPageSize);
    }

    @Override
    public PageData<SysLogInFoListVO> list(Integer pageNum, Integer pageSize) {
        log.debug("开始处理【查询登录日志列表】的业务，页码：{}，每页记录数：{}", pageNum, pageSize);
        return repository.list(pageNum, pageSize);
    }

    @Override
    public void deleteById(Long id) {

    }

}
